<%@ page import="java.util.Arrays" %>
<%@ page import="java.io.IOException" %>
<%--<%@ include file="feifa.jsp"%>--%><%--
  Created by IntelliJ IDEA.
  User: 吴超
  Date: 2022/4/14
  Time: 13:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        span,h1,a{
            color: red;
            font-size: 33px;
        }a{
           float: right;

                 }
    </style>
</head>
<body>
<%--//cookie 用来做非法入侵的
/*  Cookie cookie=new Cookie("login",name);
cookie.setMaxAge(45);
response.addCookie(cookie);//只能往后页面查询*/--%>
<%
   /* Cookie[] cookies = request.getCookies();
    if(cookies!=null){
        for (Cookie ck : cookies) {
            if(!ck.getName().equals("login")){
                out.print("非法入侵");
               request.getRequestDispatcher("load.jsp?feifa=true").forward(request,response);
            }
        }
    }*/
%>
<h1>欢迎大佬+  <%=(String)session.getAttribute("login")%>
    <%=(String)session.getId()%> </h1>
<a href="logout.jsp">注销</a>
  <%--  <%request.setCharacterEncoding("utf-8");%>
    <%=(String)request.getParameter("name")%> </h1>
<%String pwd=request.getParameter("pwd");
out.print(pwd+"<br>");
    String[] checkboxes = request.getParameterValues("checkbox");
   /* Arrays.asList(checkboxes).forEach(xjj-> {
        try {
            out.print(xjj+"<br>");
        } catch (IOException e) {
            e.printStackTrace();
        }
    });*/
   for(String xjj :checkboxes){
       out.print(xjj+"<br>");
   }
    String sex=request.getParameter("sex");
    out.print(sex+"<br>");
%>--%>
</body>
</html>
